Skip to content

Conversation

@jiafu1115
Copy link
Contributor

@jiafu1115 jiafu1115 commented Feb 4, 2026

Removed safe(List other): This method is not used.

Removed getKafkaClassLoader(): This method was a simple one-line
wrapper. It has been removed, and its logic
(Utils.class.getClassLoader()) has been inlined into
getContextOrKafkaClassLoader() to simplify the code.

Reviewers: PoAn Yang payang@apache.org, Ken Huang
s7133700@gmail.com, Chia-Ping Tsai chia7712@gmail.com

Removed the safe method that returns an empty list for null input.
@github-actions github-actions bot added triage PRs from the community clients small Small PRs labels Feb 4, 2026
* Get the ClassLoader which loaded Kafka.
*/
public static ClassLoader getKafkaClassLoader() {
private static ClassLoader getKafkaClassLoader() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just merge it into getContextOrKafkaClassLoader?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chia7712 done

Removed the private method getKafkaClassLoader and replaced its usage.
@jiafu1115
Copy link
Contributor Author

jiafu1115 commented Feb 4, 2026

Already exposed the method to user with :
image

@github-actions github-actions bot removed the triage PRs from the community label Feb 5, 2026
@jiafu1115 jiafu1115 requested a review from chia7712 February 5, 2026 10:20
@chia7712 chia7712 changed the title Minor: remove an unused method and adjust method visibility in Utils.java MINOR: remove an unused method and adjust method visibility in Utils.java Feb 7, 2026
@chia7712 chia7712 merged commit 6586446 into apache:trunk Feb 7, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants